{{define "home/index.html"}} {{ template "home/header" . }}


<head>
    <link rel="stylesheet" href="/assets/home/index.css" />
</head>

<body class="white-bg">
    <div class="wrapper">
        <div class="col-sm-12 title-bg">
            <div class="site-branding">
                <div class="site-title"><a href="/">币小四</a></div>
                <div class="site-description">分享我的笔记</div>
            </div>
        </div>

        <div class="col-sm-12 nav-x">
            <ul class="pmenu">
                <li><a href="/">HOME</a></li>
                <li><a href="">关于</a></li>

            </ul>
        </div>
        <div class="col-sm-12 content">
            <div class="col-sm-9 wrapper-blog">

                {{range .bloglist}}
                <div class="blog-list">
                    <a class="t_name" href="/article/{{.id}}">{{.title}}</a>
                    <div class="content_attr">
                        <span class="glyphicon glyphicon-time" aria-hidden="true"></span>
                        <span>{{.updated_at}}</span>
                        <span class="glyphicon glyphicon-th-large" aria-hidden="true"></span>
                        <span>{{.type_name}}</span>
                    </div>
                    <div class="t_go"><a href="/article/{{.id}}">阅读全文 »</a></div>
                </div>
                {{end}} 

 
                <div>
                    {{if gt .page 1 }}
                    <div class="page-nav page-nav-x"> <a href="{{.path_prefix}}{{.prepage}}">上一页</a></div>
                    {{else if gt .maxpage 0}}
                    <div class="page-nav page-nav-x page-nav-gray">上一页</div>
                    {{end}}

                    {{if gt .maxpage 0  }}
                    <div class="page-nav page-nav-gray">{{.page}}</div>
                    {{end}}
                    
                    {{if lt .page .maxpage }}
                    <div class="page-nav page-nav-x"> <a href="{{.path_prefix}}{{.nextpage}}">下一页</a> </div>
                    {{else if gt .maxpage 0}}
                    <div class="page-nav page-nav-x page-nav-gray">下一页</div>
                    {{end}}
                </div>
 


            </div>
            <div class="col-sm-3">
                {{range .classifylist}}
                <div class="t_classify"><a href="/home/{{.TypeName}}">{{.TypeName}}</a></div>
                {{end}}

            </div>

        </div>
        <div class="col-sm-12 footx">
            币小四
        </div>
    </div>
</body>

{{ template "home/footer" . }}

<script>
</script>
{{end}}